<?php
require_once "jssdk.php";
$jssdk = new JSSDK("wx083768d702e828d4", "0b7b2b17725ee65d129976fc2d63014b");
$signPackage = $jssdk->GetSignPackage();
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width">
		<title>爱鲜蜂</title>
		<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=624d2b42c05c6bc3ea9584c76014bf52"></script>
		<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script type="text/javascript" src="lib/require.js" data-main = "main" ></script>
	</head>
	<body>
		
	</body>
	<script type="text/javascript">
		var evt = "onorientationchange" in window ? "orientationchange" : "resize";
        var doc = document.documentElement;
        window.addEventListener(evt, _resize, false);
        window.addEventListener("DOMContentLoaded", _resize);
        function _resize() {
            doc.style.fontSize = 20 * (doc.clientWidth / 320) + "px";
        } 
	</script>
    <script>
    		wx.config({
		    debug: false,
		    appId: '<?php echo $signPackage["appId"];?>',
		    timestamp: <?php echo $signPackage["timestamp"];?>,
		    nonceStr: '<?php echo $signPackage["nonceStr"];?>',
		    signature: '<?php echo $signPackage["signature"];?>',
		    jsApiList: [
		      // 所有要调用的 API 都要加到这个列表中
		       "scanQRCode","getLocation"
		    ]
		  });
    </script>
</html>
